﻿package stfei.HorizList.Obj
{
	/**
	* ...
	* 解析XML数据返回数组-接口实现
	*/
	import stfei.HorizList.core.IparseXml;
	import flash.xml.XMLNode;

	public class inXML implements IparseXml
	{
		private var PArray:Array;
		//------------类方法---------------
		//从XMl获取图片列表
		public function getArray(xmlObj:XMLNode):Array
		{
			PArray = [];//配置成空数组
			var inset:Array = xmlObj.childNodes;
			var dataLen:Number = inset.length;//总数
			//循环将值写入数组
			for (var i:Number = 0; i<dataLen; i++) {
				PArray[i] = new Array();
				PArray[i][0] = inset[i].attributes.pic;
				PArray[i][1] = inset[i].attributes.url;
			}
			return PArray;
		}
	}
}